package cn.org.mrliu.ssm.common.web.vo;

public class ErrorMessage {
	private boolean hasError;
	private Object errorMessage;
	public ErrorMessage() {
	}
	public ErrorMessage(boolean hasError) {
		this.hasError = hasError;
	}
	public ErrorMessage(Object errorMessage) {
		this.hasError = true;
		this.errorMessage = errorMessage;
	}
	public ErrorMessage(boolean hasError, Object errorMessage) {
		super();
		this.hasError = hasError;
		this.errorMessage = errorMessage;
	}
	public boolean hasError() {
		return hasError;
	}
	public void setHasError(boolean hasError) {
		this.hasError = hasError;
	}
	public Object getErrorMessage() {
		return errorMessage;
	}
	public void setErrorMessage(Object errorMessage) {
		this.errorMessage = errorMessage;
	}
	@Override
	public String toString() {
		return "ErrorMessage [hasError=" + hasError + ", errorMessage=" + errorMessage + "]";
	}
}
